<extend name="Public:base" />
<block name="title"><title>后台管理 | 添加分类</title></block>
<meta charset="utf-8" />
<block name="css">
<link rel="stylesheet" type="text/css" href="__CSS__/select2_metro.css" />

<link rel="stylesheet" type="text/css" href="__CSS__/chosen.css" />
</block>
<block name="script">
	<!-- BEGIN PAGE LEVEL PLUGINS -->
	<script type="text/javascript" src="__JS__/jquery.validate.min.js"></script>
	<script type="text/javascript" src="__JS__/additional-methods.min.js"></script>
	<script type="text/javascript" src="__JS__/select2.min.js"></script>
	<script type="text/javascript" src="__JS__/chosen.jquery.min.js"></script>
	<!-- END PAGE LEVEL PLUGINS -->
	<!-- BEGIN PAGE LEVEL STYLES -->
	<script src="__JS__/app.js"></script>
	<script src="__JS__/form-validation.js"></script>
	<!-- END PAGE LEVEL STYLES -->
	<script>
		jQuery(document).ready(function() {
		   // initiate layout and plugins
		   App.init();
		   FormValidation.init();
		});
	</script>
</block>
<block name="sidebarmenu">
	<li class="start">

		<a href="__APP__">

		<i class="icon-home"></i> 

		<span class="title">管理首页</span>

		</a>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-cogs"></i> 

		<span class="title">系统设置</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="layout_horizontal_sidebar_menu.html">

				数据库设置</a>

			</li>

		</ul>

	</li>

	<li class="active">

		<a href="javascript:;">

		<i class="icon-bookmark-empty"></i> 

		<span class="title">文章管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li >

				<a href="{:U('Article/artList')}">

				文章列表</a>

			</li>

			<li >

				<a href="{:U('Article/addArt')}">

				添加文章</a>

			</li>

			<li>

				<a href="{:U('Article/cateList')}">

				分类列表</a>

			</li>

			<li class="active">

				<a href="{:U('Article/addCate')}">

				添加分类</a>

			</li>

		</ul>

	</li>

	<li>

		<a href="javascript:;">

		<i class="icon-user"></i> 

		<span class="title">用户管理</span>

		<span class="arrow "></span>

		</a>

		<ul class="sub-menu">

			<li>

				<a href="{:U('User/userlist')}">

				用户列表</a>

			</li>
			<li class="">

				<a href="{:U('User/addUser')}">

				添加用户</a>

			</li>

			<li >

				<a href="{:U('User/editPass')}">

				修改密码</a>

			</li>

		</ul>

	</li>

	<li class="">

		<a href="javascript:;">

		<i class="icon-th"></i> 

		<span class="title">Data Tables</span>

		<span class="selected"></span>

		<span class="arrow open"></span>

		</a>

		<ul class="sub-menu">

			<li class="">

				<a href="table_basic.html">

				Basic Tables</a>

			</li>

		</ul>

	</li>
</block>

<block name="page-title">				
	<h3 class="page-title">
		文章管理 <small>对文章进行系统管理	</small>
	</h3>
	<ul class="breadcrumb">
		<li>
			<i class="icon-home"></i>
			<a href="__APP__">主页</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('Article/artList')}">文章管理</a> 
			<i class="icon-angle-right"></i>
			<a href="{:U('Article/addSort')}">修改分类</a> 
		</li>
	</ul>
</block>
						
<block name="page-content">
	<div class="row-fluid">

		<div class="span12">
	
			<!-- BEGIN VALIDATION STATES-->
	
			<div class="portlet box red">
	
				<div class="portlet-title">
	
					<div class="caption"><i class="icon-reorder"></i>修改分类</div>
	
					<div class="tools">
	
						<a href="javascript:;" class="collapse"></a>
	
						<a href="#portlet-config" data-toggle="modal" class="config"></a>
	
						<a href="javascript:;" class="reload"></a>
	
						<a href="javascript:;" class="remove"></a>
	
					</div>
	
				</div>
	
				<div class="portlet-body form">
	
					<!-- BEGIN FORM-->
	
					<form action="{:U('doEditCate')}" method="post" id="form_sample_2" class="form-horizontal">
	
						<div class="alert alert-error hide">
	
							<button class="close" data-dismiss="alert"></button>
	
							您填写的内容有误，请核对所填写内容。
	
						</div>
	
						<div class="alert alert-success hide">
	
							<button class="close" data-dismiss="alert"></button>
	
							Your form validation is successful!
	
						</div>
	
						<div class="control-group">
	
							<label class="control-label">分类名称<span class="required">*</span></label>
	
							<div class="controls">
							<input type="hidden" name="cid" value="{$cate.cid}"/>
	
								<input type="text" name="cate_name" data-required="1" class="span6 m-wrap" value="{$cate.cate_name}"/>
	
							</div>
	
						</div>
						<div class="control-group">
	
							<label class="control-label">排序<span class="required">*</span></label>
	
							<div class="controls">
	
								<input type="text" name="sort" data-required="1" class="span6 m-wrap" value="{$cate.sort}"/>
	
							</div>
	
						</div>
	
						<div class="form-actions">
	
							<button type="submit" class="btn red">保存</button>
	
							<button type="button" class="btn" onclick="window.history.back(-1);">返回</button>
	
						</div>
	
					</form>
	
					<!-- END FORM-->
	
				</div>
	
			</div>
	
			<!-- END VALIDATION STATES-->
	
		</div>
	
	</div>

</block> 

